<?php
if (!isset($common)) require_once '../common.php';

		require_once 'include/functions.php';
		
		$soldiers=array($_GET['triarii']-1, $_GET['legio']-1, $_GET['equites']-1, $_GET['sagitarii']-1, $_GET['praetoriani']-1);
		
		discountSoldiers($_SESSION['idcity'][0], $soldiers);
		createAttack($_SESSION['idcity'][0], $_SESSION['idCityDefender'], getNamecity($_SESSION['idCityDefender']), $_GET['triarii']-1, $_GET['legio']-1, $_GET['equites']-1, $_GET['sagitarii']-1, $_GET['praetoriani']-1);
		
		header("Location: ../../map.php");
?>